package com.hc.dfs.activity;

import java.util.ArrayList;
import java.util.HashMap;

import android.os.Bundle;
import android.view.View;
import android.widget.ListView;
import android.widget.SimpleAdapter;

/** 
 * @author 王洪胜  E-mail:  
 * @version 创建时间：2013-3-13 上午11:06:09
 * 
 * 类说明：
 *
 */
public class ContactMemberActivity extends BaseActivity {

	
	private static String[] names= new String[]{
		"张永琳","邵辉","李小龙","詹庆辉","王筱迎","吕杰","庞默","赵薇薇","李少强"
	};
	private static String[] telephone = new String[]{
		"13820124548","13320124547","13890124547","13420124547","13520124547","11320124547","17220124547","16320124547","14520124547"
	};
	private static String[] email = new String[]{
		"zhangyonglin@datonggrouup.biz", "shaohui@datonggrouup.biz", "lixiaolong@datonggrouup.biz", "zhangqinghui@datonggrouup.biz", "wangxiaoying@datonggrouup.biz", "lvjie@datonggrouup.biz", "pangmo@datonggrouup.biz", "zhaoweiwei@datonggrouup.biz", "lishaoqiang@datonggrouup.biz"};
	private static String[] department = new String[]{
		"[集团本部]经营管理团队-董事长兼总裁",
		"[大通会馆]行政办公室-行政专员",
		"[亿豪酒店]总经理",
		"[地铁置业]行政部-部门经理",
		"[悦家地产]综合管理部-人力主管",
		"[北辰分]招商部-招商部长",
		"[艺豪广告]市场部-部门经理",
		"[悦家地产]二手房连锁事业部-店内勤务部-内勤主管",
		"[集团本部]法审部-审计主管"
	};
	private ListView list;
	private ArrayList<HashMap<String, Object>> dataList;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.contact_member_list);
		list = (ListView) findViewById(R.id.list);
		dataList = new ArrayList<HashMap<String, Object>>();
		for(int i=0; i<names.length; i++){
			HashMap<String, Object> map = new HashMap<String, Object>();
			map.put("name", names[i]);
			map.put("telephone", telephone[i]);
			map.put("email", email[i]);
			map.put("department", department[i]);
			dataList.add(map);
		}
		list.setAdapter(new SimpleAdapter(this, dataList, R.layout.contact_member_item, new String[]{"name", "telephone", "email", "department"}, new int[]{R.id.name, R.id.telephone, R.id.email, R.id.department}));
	}

	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void init() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void refresh(Object... param) {
		// TODO Auto-generated method stub
		
	}

}
